define([
  'backbone'
], function(Backbone) {
  return Backbone.Router.extend({
    routes: {
      'lists/:id': 'openList'
    },
    initialize: function() {

    },
    openList: function(id) {
      if (baker211b.collections.lists && baker211b.collections.lists.length) {
        var list = baker211b.collections.lists.get(id);
        if (list) {
          list.trigger('select');
        } else {
          console.log('list not found:', id);
        }
      }
    }
  })
})